package hcn.protocol.ods.casehistory;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

/**
 * @program: 20190427StandardEdition
 *
 * @description: 物流承运商枚举
 *
 * @author: zhusm@bsoft.com.cn
 *
 * @create: 2019-06-21 13:52
 **/
@NoArgsConstructor
@AllArgsConstructor
public enum BLCarrierLogisticsEnum {
    SF("1","顺丰速递"),EMS("2","邮政速递(EMS)");

    private String code;
    private String description;

    public static final BLCarrierLogisticsEnum getDescription(String code){
        for (BLCarrierLogisticsEnum type : BLCarrierLogisticsEnum.values()){
            if (type.getCode().equalsIgnoreCase(code.trim())){
                return type;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
